//
//  SurnameManager.h
//  projectOfTeamSample
//
//  Created by lk on 15/11/16.
//  Copyright © 2015年 liukai. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "SurnameInfo.h"
#import "SurnameOfPicInfo.h"
#import "SurnameOfVideoInfo.h"
@import AVFoundation; // 引入播放器系统框架

@interface SurnameManager : NSObject

// 段子数组个数
@property (nonatomic, assign) NSUInteger surnameCount;

// 笑图数组个数
@property (nonatomic, assign) NSUInteger surnameOfPicCount;

// 视图数组个数
@property (nonatomic, assign) NSUInteger surnameOfVideoCount;


/**
 
 * 初始化单例
 
 **/

+ (SurnameManager *)managerDefault;

/*-----------------------Surname-----------------------*/

/**
 
 * 解析文本Surname数据
 
 **/

- (void)getSurnameOfTextWithHandel:(void(^)())handel;


/**
 
 * 获取surnameInfo
 
 **/

- (SurnameInfo *)getSurnameInfoWithIndex:(NSInteger)index;



/*-----------------------SurnameOfPic----------------------*/

/**
 
 * 解析笑图的url
 
 **/

- (void)getSurnameOfPicWithHandel:(void(^)())handel;


/**
 
 * 获取surnameOfPicInfo
 
 **/

- (SurnameOfPicInfo *)getSurnameOfPicInfoWithIndex:(NSInteger)index;



/*-----------------------SurnameOfVideo---------------------*/

/**
 
 * 解析视图url
 
 **/

- (void)getSurnameOfVideoWithHandel:(void(^)())handel;


/**
 
 * 获取surnameOfVideoInfo
 
 **/

- (SurnameOfVideoInfo *)getSurnameOfVideoInfoWithIndex:(NSInteger)index;


/*----------------------AVPlayer-----------------------------*/

/**
 
 * 点击视频界面的图片触发的播放视频事件，准备播放视频
 
 **/

- (AVPlayer *)prepareWithIndex:(NSUInteger)index;







@end
